package com.soft.mainsite.module.data.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.soft.mainsite.common.annotation.ExcelField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Appointment.java 此类用于预约实体
 *
 * @author:李昭阳
 * @date:2019/4/24 0024
 * @remark:
 */
@Data
public class Appointment implements Serializable {

    @ApiModelProperty(value = "自增id")
    @ExcelField("id")
    private Integer id;

    @ApiModelProperty(value = "资料id")
    @ExcelField("资料id")
    private Integer dataId;

    @ApiModelProperty(value = "用户手机号")
    @ExcelField("用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "资料是否被领取，0未领取，1已领取")
    @ExcelField("资料是否被领取，0未领取，1已领取")
    private Integer isReceived;

    @ApiModelProperty(value = "资料是否被收藏，0未收藏，1已收藏")
    @ExcelField("资料是否被收藏，0未收藏，1已收藏")
    private Integer isFavorite;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT +8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelField(value = "领取时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("办理状态")
    @ExcelField("办理状态")
    private Integer status;

    @ApiModelProperty(value = "资料标题")
    @ExcelField("资料标题")
    private String dataTitle;

    @ApiModelProperty(value = "资料封面图")
    private String dataCover;

    @ApiModelProperty(value = "资料文件")
    private String dataFile;

    @ApiModelProperty(value = "资料所属分类id")
    @ExcelField("资料所属分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "资料学科分类名字")
    @ExcelField("资料学科分类名字")
    private String categoryName;
}
